public class Text {
    public static void main(String[] args) {
        Student student=new Student("yiyi",123);
        Student student2=new Student("yiyi",123);
        Student student3=student;
        System.out.println(student.equals(student2));
        System.out.println(student.equals(student3));
        //重写的equals与内容相关
        //==与地址相关
    }
}
